libxc: restore: reset I/O fd to flags to back to state caller passed us
authorIan Campbell <ian.campbell@citrix.com>
Tue, 7 Sep 2010 18:13:01 +0000 (19:13 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 7 Sep 2010 18:13:01 +0000 (19:13 +0100)
commit08aeb139d296e7f9f787cf331f1c6a4824f9061b
treee500411aa0ee68b820204f2c6fe58ab9e50661a4
parent00a4b65f8534c9e6521eab2e6ce796ae36037774
libxc: restore: reset I/O fd to flags to back to state caller passed us

In particular this causes us to turn O_NONBLOCK back off if we set it.

The caller may continue to use the fd for it's own protocol needs and
may not be prepared to have it become non-blocking.

This probably only effects Remus now after my previous patch to signal
the last checkpoint, since a regular migration will no longer set the
fd non-blocking.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Brendan Cully <brendan@cs.ubc.ca>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxc/xc_domain_restore.c